home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8403.arc
/
VDOXQQ.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1980-01-01
|
2KB
|
69 lines
Program Type_Ten_Interrupts(input,output);
{ Barbara Clinger
Professor of Mathematics
Wheaton College
Norton, Mass. 02766
September 28, 1983 }
Function vdoxqq (areg: word): word; extern;
Var [extern] vrBXqq, vrCXqq, vrDXqq : word;
Var
AX,CX : word;
AH, AL : word;
BH, BL : word;
CH, CL : word;
DH, DL : word;
Display_Page : word;
Answer : char;
Begin
Display_Page := 0;
{ Enter 80x24 color graphics, text mode }
AH := 0; AL := 3; { Type 0, Mode 3}
AX := vdoxqq(byword(AH,AL));
{ Clear the screen, set background to black, foreground to red }
AH := 6; AL := 0; { Type 6, AL = 0 clears the screen }
BH := 66; { attribute, green on red }
CH := 0; CL := 0; { row, col of upper left corner to scroll }
DH := 24; DL := 79; { row, col of lower right corner to scroll }
vrBXqq := byword(BH,0);
vrCXqq := byword(CH,CL);
vrDXqq := byword(DH,DL);
AX := vdoxqq(byword(AH,AL));
{ place the cursor in row 12, column 39 }
AH := 2; { Type 2 }
BH := Display_Page;
DH := 12; DL := 39;
vrBXqq := byword(BH,BL);
vrDXqq := byword(DH,DL);
AX := vdoxqq(byword(AH,0));
{ Write six A's }
AH := 9; AL := 65; { Type 9, A is ASCII 65 }
BH := Display_Page; BL := 30; { 30 produces bright yellow on blue }
CX := 6;
vrBXqq := byword(BH,BL);
vrCXqq := CX;
AX := vdoxqq(byword(AH,AL));
{ Read current cursor position }
AH := 3; { Type 3 }
BH := Display_Page;
vrBXqq := byword(BH,0);
AX := vdoxqq(byword(AH,0));
Writeln;
DH := vrDXqq DIV 256; DL := vrDXqq MOD 256;
Writeln(DH:6,DL:6);
Writeln;
Write('Enter a character ');readln(answer);
{ Return to 80x25 black and white alphanumerics }
AX := vdoxqq(byword(0,2))
End.